function randomNum(minNum,maxNum){
    if(!maxNum){
        maxNum = minNum;
        minNum = 0;
    }
    return Math.floor(Math.random()*(maxNum-minNum+1)+minNum)
}



var Arr = ['A','B','C','D','E','F','G']
for(var n=1;n<=10;n++){
    Arr.push(n)
}

function randomSort(arr){
    var result = []
    while(arr.length){
        var index = Math.floor(randomNum(arr.length))
        result.push(arr[index])
        arr.splice(index,1)
    }
    return result
}



console.log(Arr.toString())
console.log(randomSort(Arr).toString())






